package com.ricardoteix.subtitle {
	/**
	 * ...
	 * @author Ricardo Teixeira
	 */
	public class SubtitleBlock {
		
		private var _id:int = -1;
		private var _startTime:SubtitleTime = null;
		private var _endTime:SubtitleTime = null;
		private var _text:String = "";
		
		public function SubtitleBlock() {
			
		}
		
		public function get id():int { return _id; }
		
		public function set id(value:int):void {
			_id = value;
		}
		
		public function get startTime():SubtitleTime { return _startTime; }
		
		public function set startTime(value:SubtitleTime):void {
			_startTime = value;
		}
		
		public function get endTime():SubtitleTime { return _endTime; }
		
		public function set endTime(value:SubtitleTime):void {
			_endTime = value;
		}
		
		public function get text():String { return _text; }
		
		public function set text(value:String):void {
			_text = value;
		}
		
		public function toString ():String {
			return "SubtitleBlock [\n\t" + this.id + "\n\t" + this._startTime.toString () + " --> " + this._endTime.toString () + "\n\t" + this._text + "\n]";
		}
		
	}

}